<?php

/**
 * Model ImportCustomerForm
 *
 * @author nguyenmanhluu
 * @since Aug 28, 2013 - 4:20:16 PM
 */
class ImportCustomerForm extends CFormModel
{

    public $file;
    public $biz_id;
    public $default_password;

    /**
     * Declares the validation rules.
     * The rules state that email and password are required,
     * and password needs to be authenticated.
     */
    public function rules()
    {
        return array(
            array('file, biz_id, default_password', 'required'),
            array('biz_id', 'numerical'),
            array('file', 'file'),
        );
    }

    /**
     * Declares attribute labels.
     */
    public function attributeLabels()
    {
        return array(
            'file'             => 'File csv',
            'biz_id'           => 'Merchant',
            'default_password' => 'Default Password',
        );
    }

}

/** 
 * End file ImportCustomerForm
 */
